﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Remoting.Metadata.W3cXsd2001;
using System.Security.Cryptography;
using System.Web;

namespace SalesPortal.Web.Helpers
{
    public class CryptographyHelper
    {
        public CryptographyHelper()
        {
            //
            // TODO: Add constructor logic here
            //
        }
    }

    public class EncryptionHelper
    {
        public static string UsingDES(string plainText)
        {
            return DES.Encrypt(plainText);
        }

        public static string UsingAES(string plainText)
        {
            return AES.Encrypt(plainText);
        }
    }

    public class DecryptionHelper
    {
        public static string UsingDES(string hexCipherText)
        {
            return DES.Decrypt(hexCipherText);
        }

        public static string UsingAES(string hexCipherText)
        {
            return AES.Decrypt(hexCipherText);
        }
    }

}